<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html; charset=ISO-8859-1" %>
<jsp:include page="/includes/jsp/titulo.jsp"></jsp:include>
<form action="salvaSenhaUsuario" method="post" >
  <table>
    <tr>
      <td colspan="2">
        <fieldset>
          <legend>Troca de Senha</legend>
          <table width="100%">
            <tr>
		      <td>Login:</td>
		      <c:if test="${usuario.usuadministrador == true}">
	          <td><input type="text" name="login" size="20" value="${usuario.usulogin}"></td>
		      </c:if>
		      <c:if test="${usuario.usuadministrador == false}">
		      <td><input type="text" name="login" size="20" value="${usuario.usulogin}" readonly="readonly"></td>
		      </c:if>
		    </tr>
		    <tr>
		      <td>Senha atual:</td>
		      <td><input type="password" name="senha" size="20" value=""></td>
		    </tr>
		    <tr>
		      <td>Nova senha:</td>
		      <td><input type="password" name="novaSenha" size="20" value=""></td>
		    </tr>
		    <tr>
		      <td>Repita a nova senha:</td>
		      <td><input type="password" name="verificacaoNovaSenha" size="20" value=""></td>
		    </tr>
          </table>
        </fieldset>
      </td>
    </tr>
    <tr>
      <td colspan="2"><fieldset>        
        <div align="right">
          <input type="submit" name="salvar" value="Salvar">
          <input type="button" name="cancelar" value="Cancelar" onclick="history.back();">
        </div>
        </fieldset>
      </td>
    </tr>
  </table>
</form>